Extracting method remove_unreachable_resources from unwatch_symlink