if 'devicetype' in data:
            kwargs['metadata']['device_type'] = data['devicetype']