Simplify logic in MergedSqlConfig