Make DeviceInfo an interface.