Perhaps it would be simpler to just have it be "paths" on all of them, to avoid needing to having branching logic in the recursive calls?