Moves several more key management and metadata functions into LegacyScriptPubKeyMan from CWallet to further separate the two.
Note to reviewers: All of the if (auto spk_man = walletInstance->m_spk_man.get()) {
blocks will be replaced with for loops in the next PR so you may see some things in those blocks that don’t necessarily make sense with an if
but will with a for
.