Shared code between Workflow and App

Hello all!

I feel I must be missing something obvious. I've got data in Azure CosmosDB that I want to query and process in a scheduled Workflow and put into Retool DB. I'm porting an existing CLI tool which has a CosmosClient class that encapsulates all the functionality required.

Some of the functionality in the class is also used for updating CosmosDB which I want to be able to call from an App that will query Retool DB.

Where can I put this common code so that it can be instantiated by either a Workflow or an App?