Remove dependency injection container passed by argument