How do I run the same functions for On Add and On Edit?

How do I run the same functions for On Add and On Edit?

Hello,

I have a bunch of functions/scripts that run when a new entry is attempted to be added to a form (i.e. On Add > Validate and On Add > On Success). I'd like those same functions to run when a form entry is edited (i.e. On Edit > Validate and On Edit > On Success).

Is there a more elegant way to do this beyond simply copying and pasting all the functions?

Thanks!