Start refactoring mixin generator.