Fix type in DeviceEnvironmentFactory

Change related with https://github.com/allegro/ralph/pull/1044
Due to changes in the model, `DeviceEnvironmentFactory` type must be changed.