refactor(injector): store supportObject function in variable

Storing the supportObject in a function - so if that changes the
following lines can remain unchanged.