Factor out ::_Path logic for a more generic approach