A better name for the function might be `_PathComponents`.