Collapse redundant items