Combine middleware functions together into a single function, which can then be called as standard middleware.