Refactoring, generator