deleting factories unused