Apple could avoid damaging layoffs thanks to these key decisions