Reorganize Express middleware.