You can, alternatively, do his suggestion of putti...
# suitescript
e
You can, alternatively, do his suggestion of putting the logic shared by the two user events into a common module