removing redundant throws clauses