It makes sense to deduplicate this logic and merge it to a single point of truth.
Reviewers mentioned this in the thread at #19092 (review), where I wanted to use AmountFromValue()
in bitcoin-cli.cpp
, making yet another (third) copy of that same function.