Adobe Interview Question

What would be your approach to refactor a legacy code base with focus on code quality?