a custom module with one function would work fine ...
# suitescript
c
a custom module with one function would work fine rather than the exact same code in 4 functions in 4 script files