Modernize legacy code step by step: upgrade frameworks, replace deprecated APIs and old patterns, with tests and type checks after every change.
1 in the Claude listing