In a sense, there are no loopholes, just tax advantages waiting to be used to reduce taxes.
Legislating measures to reduce these tax advantages is so hard since they require the tax haven's cooperation, which is not gonna happen. Nor would it be easy to get though corporate donors that benefit...