Separation from require-middleware