:two: This is bad form, imo. Instead of using switch/case hacks, the logic should be split out in a separate function, and then be called from `hook_form_FORM_ID_alter` implementations.