For starters, just generate a statement per setting/trigger/override of the difference from the default config.
Then start thinking about grouping statements. If grouping setting overrides with the same condition, take care not to reorder the overrides of a setting as it changes the behavior.
For starters, just generate a statement per setting/trigger/override of the difference from the default config. Then start thinking about grouping statements. If grouping setting overrides with the same condition, take care not to reorder the overrides of a setting as it changes the behavior.