[#eng-3897] refactor shardSwap into NodeInfoHelper