Put forwarded code into middleware sub-package.