refactor: moved injectors before function definition for readability