See also proposed refactoring of the Macro Config UI in https://forum.xwiki.org/t/macro-config-ui/16860/