This is oft-stated, but not really true in a practical sense. If in 2018 parking lots are more profitable than manufacturing, will you see Apple go into the parking lot business?
There's a huge amount of wiggle room and discretion possible even within the obligations to share-holders.