Move specialFields from MainWindow to Context

.. and tidy up a few unneccessary references to mainWindow