Remove redundant blocks.