Fix factory template: singular class name, indent block.