Every company does this and its legal. It doesn’t make them evil, if there is a problem with the tax code, take it up with the politicians. No individual would pay more taxes then they have to and if they could find a legal way to pay less everyone would so why are we surprised when companies do it?