Refactoring: Created TestFactoryType enum type and removed equivalent enum from each individual test factory.