Replace Conditional Dispatcher with Command

Conditional logic is used to dispatch requests and execute actions.

Create a Command for each action. Store the Commands in a collection and
replace the conditional logic with code to fetch and execute Commands.