Use a dependency injection framework.
Use a dependency injection framework.