Removing redundant throws statements