Pick up middleware from plugins