FIX remove deprecated set_environment_type call