Design change to factory method out the SensorInterface