Rename middleware wrapper