Remove unneeded cases.