Reduces number of calls to HeroEnvironment.getObjectFactory