Removing duplicate item from list of data types