I would like to remove writeMiniEditor but a lot of tests are using it, and switching to different context then default when being in one already can cause some problems :( During the refactoring we should gracefully stop using writeMiniEditor()