Extracted ClassGenerator.