Add remove_path: a function to remove as much as possible of a path