Refactor calls to create tab content into a helper to reduce copy/paste.