This creates the shortest unique path elements that can be unambiguously expanded to the original path.