Revert "Add a function to generate the "path" to an object."

This reverts commit 24d9b699d494017bfc94a9a73eede6e6c31bd87b.