yeah, fair enough.
In my theoretic package (for theorems) I simply store the rendered number (which may include chapter numbers) in a metadata
(along with other stuff like title etc.) – that also works, but it requires the set-up of creating the metadata in the figure.