move `cabv` method out of `Pathname` monkeypatch

recast as utility method