Gentlemen (and ladies),
maybe the solution lies in using a mix of OO (and perhaps functional) VB or C# to create Entities, Interfaces and Services, and UiPath code to handle the UI and data retrieval. What do you think? The book I’ve mentioned above provides examples of such Entities, Interfaces et al.