Rename add_hierarchy_to_path to path_add_hierarchy.