The ideal solution is to refactor the common code ...
# suitescript
m
The ideal solution is to refactor the common code into a module both the UE and Suitelet import