Convert captcha, cache, csrf as middlewares