remove factories
remove templates
rebuild
rebuild