Update Middleware to be an implementable interface, providing MiddlewareHandler as a type that implements the interface.