Refactoring actions to rely more on Netbeans system actions.