Collapse multiple identical catch clauses into one.