This style of `if ... elif ... elif` is very hard to test. If, instead, each of the actions were in a separate function, it would be much easier to tell what information the action needed in order to execute, and also much easier to test each action in isolation (without requiring posts through the UI, or creating a full request, or the like.