Remove categories which are inactive or have been excluded from the menu