Adapted to changes in DI container config integration.