Fix non-explicit dependency injection.