taking the class out of factories