@gjn did you take a look at my (wip) approach ? https://github.com/geoadmin/mf-geoadmin3/commit/1d46f9ca9a269928d6bd8861740d102943018e81