;-)
I’m serious, don’t become Don Quichotte. If your if-statements and switches are really as big as your examples, I suspect there is an issue at architecture level with your system. No design pattern will fix that if you don’t identify and revisit that problem first.