Stop using deprecated call for device id.