Refactor assignment of paths_to_skip.