move cabv method out of Pathname monkeypatch

recast as utility method
Merge pull request #8460 from rolandwalker/no_monkeypatch_cabv

move `cabv` method out of `Pathname` monkeypatch