pub fn to_state_updates<M>(
    index: IndexMap<NodeId, TrackedNode>,
    partition_deletions: IndexSet<(NodeId, PartitionNumber)>
) -> StateUpdates
where M: DatabaseKeyMapper + 'static,