refactor Search#__remove_dups__