It's seems straightforward to fix imo, just like contractors,
Here's what you can offset against your revenue and here is what you can't.
E.g. As a contractor you can offset travel and accommodation costs up to a certain amount but you can't offset a new car. As a company you can offset costs on your revenue from other companies but not from any connected to yourself or any in tax havens.
If you do business in a country then you should pay that countries tax.
Would that not work?