Identifying and removing duplicate cases