Fixing the name of the methods for obtaining instances in ServiceFactory