The way to remove menubar item

Hi,
There is no way to remove default menu items, so I decided to add necessary changes. Also I've added safe indexer just for convenience. Please review and comment what do you think.