let cleanup: (() => void) | null = null; export function registerDungeonRaceAffixCleanup(handler: () => void): void { cleanup = handler; } export function cleanupDungeonRaceAffixes(): void { cleanup?.(); }