Refactoring all generators to inherit from the CodeGenerator interface.