Extract vars to constants