simplify config_variables method