Remove unneeded exceptions.