The current story for folding and mapping document label definitions is a bit subpar. Something better should be designed. Maybe we should integrate label definitions in the mapper/folder structure.
This only became acute because of the label definition generalization that was needed for footnotes whose definitions have blocks. Link definitions have neither blocks nor inlines.