Reduce code duplication in MergedSqlConfig