The function used to obtain the sharding info for a given node (its number of shards and ignore_msb_bits) was using gossiper application states. We want to reuse `topology_description_generator` to build CDC generations when doing Raft Group 0-based topology changes, so make `get_sharding_info` a parameter.