Some refactoring, moving some methods from MainWindow.xaml.cs to MainWindowFormatCommands.cs