Refactoring local vars into CONFIG_DEFAULTS with custom extend()