Pulled some common logic into a tab toolbar base class