settings: Use a derive macro for refine (#38451)

When we refactored settings to not pass JSON blobs around, we ended up
needing
to write *a lot* of code that just merged things (like json merge used
to do).

Use a derive macro to prevent typos in this logic.

Release Notes:

- N/A
b09764c54aConrad Irwin committed on 9/18/2025, 9:13:49 PM· committed by GitHubparent5f4f0a8
64 files changedLine totals unavailable