Revert "Remove unused ENVIRONMENTS global"

This reverts commit e01d3bd43581321541a12e0400bc3c4d337c964b.