Remove some unused exceptions.