Remove redundant entries