This call is cleaner and simpler than DeviceToEdit, and it shouldn't be less efficient to call it many times than calling DeviceToEdit once (since DeviceToEdit loops over all keys anyway). Maybe DeviceToEdit should be dropped.