Musk has already admitted in the email to the company that this was a cost-cutting decision:
https://twitter.com/elonmusk/status/1006597562156003328
I also think that this move was mandated by the board when it recently voted for him to remain chairman (maybe not the firing per se, but that Tesla becomes profitable ASAP).