Prepare generator to delete obsolete files and to use GenerateFactoryAttribute.