Team Shared Structures

Hi there, I've got a structure that has an ability to spawn a unit. The ability has a cost associated with it and everything works fine if there's a single player and I can just use SetOwner on the structure, however I'm planning for my gamemode to be for multiple players and so I need team shared ownership.

I saw a similar thread mentioning SetExecutreOrderFilter however that seemed very complex and I didn't want to break everything (If there's a good tutorial or API documentation on that I'd be happy to try and learn though). Is there a simpler way of getting team shared ownership or some way of finding the player that actually used the spawn ability so that I can 'manually' subtract gold from their resources in a Lua script? Help is greatly appreciated :)