Extends factories by inject method to allow mocking in unit tests