Refactoring generators for code climate