Actually this function's name should not have `_recurse` in it at all; this is an iterative, not recursive, algorithm (which is fine, probably better, but the name should not mislead.)

I think maybe `get_ancestry` or `_get_ancestry_path` (the latter to indicate that it returns a string, not a list or something).