Theoritically, beside Itachi's Izanami, the Yamanaka clan was the only solution to cancel Edo Tensei during the 4th war.
If a Yamanaka learn the undo sceal of Edo Tensei, he could take control of Kabuto's mind, and do the sceal to cancel Edo Tensei. But in this respect, the Yamanaka guy needs...