Moving the schema related code to the SchemaGeneratorBase.