Automated building of environment modules