Refactoring generator.