set_injector refactor