Apple has made quite a green turnaround in the past couple of years.