refactor inject to reduce 1 liner