Does it make sense to turn this into a utility? this block is repeating a lot. Something like:
https://github.com/spumko/hapi/blob/master/lib/client.js#L199