I let the handler function dispatch to the specialized functions for processing a form.
Most forms are more complex than just "if value is set run function ...". E. g. submit/preview can be set even when all the other form fields are not (not filled, or a crack attempt without browser). I have a form which runs the edit function when a preview is wanted and all the fields are empty.
Regards, Stefan