move include method from ActionDispatch::MiddlewareStack to array of middlewares