Change DeviceEnvironment from custom model to CI.