Another thing about the Apple Ireland tax case you won't read: Apple isn't the only company (and Ireland isn't the only country) that's been investigated for this kind of favourable deal. Both Starbucks (in the Netherlands) and Fiat (in Luxembourg) have been subject to the same kinds of investigation. Starbucks won its case, but the Netherlands is appealing.
https://ec.europa.eu/commission/presscorner/detail/en/IP_14_663