remove unused factories