Split middlewares to multiple files