WHISTLE-1441: refactor to dedup some code use
KAZOO-532: if no offnet succeeds, send 503 to a-leg
KAZOO-532: formatting