The order of middlewares is quite important.
Reduced render method complexity.