Fix ObjectFactory's use of strings