Revert "Allow `saveMainContext` to be called from anywhere."

This reverts commit c95688cbc2c04ada1673b44258b2e30edd75668b.