remove unnecessary factories