You opt out slowly, a little bit at a time, by contract, especially in the form of a trust. For example.
Let's say that you own a dairy farm. You want to sell raw milk to other people, but government won't let you. Here's how you can do it without doing it. Form a trust.
Your wife is the creator of the trust. You are the trustee. Your children are beneficiaries. The property in trust is some raw milk that one of your cows donated to the trust. The trust states that the trustee can resign, turn his trusteeship over to another person, and change the beneficiaries at will.
The person who wants to buy your raw milk makes a similar trust. The difference with
this trust is that some cash is the property of the trust rather than some raw milk.
Then, the both of you trustees resign your position as trustee, naming the other trustee as the new trustee. Once this is done, you both change the beneficiaries of the trusts, and take control of the property that is in trust.
No buying and selling was done. Yet the exchange was made. Do it right, and the courts can't mess with you.
Btw, this works with anything, like avoiding sales tax when selling a house or car, etc.