Remove redundant pairs when they are from the same collection, not when they are from the same collection type