Dependency injection helper