Allow the user to replace the internal IoC container.