Ditto for path-traversals - pull it into a named method.