Refactor VARS to config