Refactoring is not porting …

Port your code if you want to introduce new frameworks or switch to new programming languages.

By porting your code base or parts of it your tech base will be up to date. As far as possible keep your classes and components during porting.

Refactoring on a regular base is a prerequisite because you should port code which is readable and optimized.