Make proto_env independent of SDD.