rearrange remove-path-from a bit