[FLINK-1207] Context environments are realized through factories