Avoid passing the request object around, pass only the required settings instead.