We'll need to change that function for https://github.com/geoadmin/mf-geoadmin3/issues/342. I think it makes sense to add a comment in the code for that, if #342 is really a must-have and something we'll eventually address.