Clean up some routing inspector methods

* use `Object#tap` because it is clearer and shorter
* use do-end for multiline block