Eliminate my_DeviceMergeKeysIndices function.