GetLegacyBalance returns arbitrarily different values than GetBalance, sometimes even negative balances
It is only used to throw a warning in some cases, so instead of fixing it, it should be safe to remove it (since the "balance check" is done by the wallet internally).
The first commit is a scripted-diff that does not change the objdump of bitcoind for me and seems like a nice cleanup to me.