Remove unnecessary removeAction call in MainWindow.
Optimize deletion of copy to clipboard actions.