Parts of the RemoveDuplicates assignment