Remove unneeded exception declaration.