You don't like the loopholes? Close them. Do not blame people for using every single option they are given.
The right thing to do is lower the tax rate and remove the loopholes. The total tax paid could stay the same, but the distribution would be different.
The current system is unfair, you need to pay a lot of money to work out these complicated scenarios, this hurts smaller businesses, and costs a lot of money to implement.
"Any one may so arrange his affairs that his taxes shall be as low as possible; he is not bound to choose that pattern which will best pay the Treasury; there is not even a patriotic duty to increase one's taxes." - Gregory v. Helvering, 69 F.2d 809, 810 (2d Cir. 1934)
"Over and over again courts have said that there is nothing sinister in so arranging one's affairs as to keep taxes as low as possible. Everybody does so, rich or poor; and all do right, for nobody owes any public duty to pay more than the law demands: taxes are enforced exactions, not voluntary contributions. To demand more in the name of morals is mere cant." - Commissioner v. Newman, 159 F.2d 848, 851 (2d Cir. 1947) - dissenting opinion