Yeah you do have to modify a little of your thinking to work around. What I do is all projects share a common.js while each project has a projectcommon.js file. This allows me to put shared functions and project specific functions in an orderly fashion.
I have had to add this to use web inside the reused file. I imagine it is similar for what you are trying to do.
const web = ox.web;
This allows all the web.function to work properly. I imagine you are looking for something like this:
const http = ox.http;
I also use system variables to determine paths and project names. Hope this is helpful.