Get rid of Armors and Weapons tabs

I'm making a game where I only really need the items and key items tabs, and I have no actual use for the Armors or Weapons. How can I make my items menu not show them?
This is the function that creates the options in that window, so you can add this as a plugin and it will overwrite it:

Code:
Window_ItemCategory.prototype.makeCommandList = function() {
    this.addCommand(TextManager.item,    'item');
    //this.addCommand(TextManager.weapon,  'weapon');
    //this.addCommand(TextManager.armor,   'armor');
    this.addCommand(TextManager.keyItem, 'keyItem');
};

Original thread: https://forums.rpgmakerweb.com/threads/get-rid-of-armors-and-weapons-tabs.99961/