CSPACE-6270: Moved most environment-related blocks to the cspace_environment module.