Transform Express functions that take HTTP request and response to return to code.