remove factories.js