Utility method used instead of manual creation of an injector
Minor. Duplication eliminated