Remove duplication checking from path_helper