When I start refactoring legacy code