Started porting main editor logic into its own class separate from the MainForm's class to help keep UI and functionality separate.