Move config_err_wrap closer to where it's used.