Static dependency injection for libraries.