cleans up find_and_remove_duplicate method and call.