Remove redundancy in list.