[refactoring] Collapse identical catch blocks