Remove unnecessary Exception subclasses.