I have a flow based on file creation and modification that creates/updates items in lists based on metadata from the file. There are 25 possible list destinations based on a metadata column. I use the Switch Case to direct the flow to the corresponding list. In each Case there is logic that I have to recreate 24 times to use the correct list in get,update,create. I would like to be able to set a variable in the each Case and write the logic one time using the variable list name in subsequent get,update,create. Is this possible?

Get Items doesnt seem to mind that a string variable

But Create Item complains

Is there a better way?