This split is done in preparation for the next commit where the dependency on UniValue in the kernel library is removed.