Can `ALLOCATE_GLOBAL` macro be replaced with `ALLOCATE` macro everywhere? If so, this removes a lot of confusing code.