(Refactor) Remove duplicates.