Refactored getPrefixTabs