Yes, that's correct. You can either copy this code to the replaced PortalCasePage and remove items that should not be present in the page actions (don't declare them) or you can call parent method and then remove items from the items array returned in the collection of the actionMenuItems object.