The two consts provide different views of the subl...
# suitescript
e
The two consts provide different views of the sublist structure, then you can just reuse those wherever. Obviously I'm taking some shortcuts and probably getting some param names wrong, but hopefully that shows the idea