=== Message

Refactor the code to eliminate this nested "switch".

