200-foot-long railway to nowhere is a brilliant shipping loophole
Loopholes in the law are like security flaws in programs. Whenever the letter of the law (code) doesn't exactly match the intent, inevitably some attacker will find it and exploit it, especially if there is monetary incentive as is the case in business. This doesn't mean the law is wrong, just that the people who wrote it were careless and didn't think about all the edge cases. What most democratic governments lack is a way to do a quick security update to zero-day loopholes as they are found. These things shouldn't be fixed with years-long lawsuits arguing the intent of the law, they should be fixed with a patch to the actual wording of the law so the intent is more clear.