[Core] Move away from GlobalVars.py