% ── Label generator ─────────────────────────────────────────────────
\newcommand{\printNumberingConfigForDescriptor}[1]{\csname #1numbering\endcsname}
\newcommand{\printCounter}[1]{\refstepcounter{#1}\csname the#1\endcsname}

\newcommand{\printLabel}[1]{%
    \ifthenelse{\boolean{numberingDisabled}}{}{%
        \ifcsdef{#1numbering}{% Extra config present
            \ifthenelse{\equal{\printNumberingConfigForDescriptor{#1}}{default}}{%
                \labelPrintBackendRoutine{#1}%
            }{%
                \ifthenelse{\equal{\printNumberingConfigForDescriptor{#1}}{separate}}{%
                    \printCounter{#1\subsectionnumbering}%
                }{%
                    \ifthenelse{\equal{\printNumberingConfigForDescriptor{#1}}{combined}}{%
                        \printCounter{combined\subsectionnumbering}%
                    }{}%
                }%
            }%
        }{%
            \labelPrintBackendRoutine{#1}%
        }%
    }%
}

\newcommand{\labelPrintBackendRoutine}[1]{%
    \ifthenelse{\equal{\numberingpreset}{combined}}{%
        \printCounter{combined\subsectionnumbering}%
    }{
        \ifthenelse{\equal{\numberingpreset}{separate}}{%
            \printCounter{#1\subsectionnumbering}%
        }{}%
    }%
}
