making the ObjectFactory swappable with a public getter/setter and moving the getAliases method into the ObjectFactoryInterface