Update middlewares to work on the specified express without warnings.