monitor-config: Factor out some code to make a default config