Lectern.Tabs: move label finding into a separate function