WORK IN PROGRESS: Make base agnostic

This is related to:
https://github.com/geoadmin/mf-geoadmin3/pull/992

It cannot be merged before!!

Do you agree with the approach?