Hi Tom,
If you have not already, I'd recommend looking at how some of our VBO objects distributed with the product are built - including namespace references and global code.
For further advice, maybe contact your Blue Prism mentor directly to discuss this, and the your need for code stages (as we are always interested in where code stages are being used, as most things should be possible without them - unless you are calling an application API.