Change this to remove the factory variable, it's unnecessary.