Refactoring manager