Remove logger middleware from initialization.