Staticify `merge_config`