Elon Musk, IIRC, was Chairman, Largest Shareholder, and CEO when the deal in question / contract was written.
Elon had a spat with SEC who removed him as chair, but Musk remained largest Shareholders and CEO after that.