Simplify NodeFinder.allAncestorsOf