Some standard refactoring in Netbeans