Idk u also have to take into account money they make from consoles, controllers, accessories, and they no longer make 100% back on digital sales.
FY 2012-2014 are the only times that Nintendo has posted losses and alot of that comes from them selling their hardware at a loss for pretty much the first time. Basically as long as Nintendo hardware is sold at a profit than Nintendo makes a profit so I see no need for them to go third party in the near future.
When the herd loses its way, the shepard must kill the bull that leads them astray.