Don't wiring shard unless it is enabled

CC  @zsoltbalogh @mhan810