Coming from a fairly small EU country, one way I've alleviated the issue before is the equivalent of an LLC. The company makes a long term contract to buy services from me through my company, I pay myself through that legal entity and handle the taxes on the local level. It means the legal interaction is slightly different, as are the benefits and downsides, but it's a good option when it fits both sides. I'm not sure how it compares to the situation you've outlined above, and hopefully I won't have to ever find out, but offering my two cents.