Remove unused exception types.