"The check for whether a block is pruned or not is sufficiently obscure that it deserves a macro. It is also used in 2 places, with more coming, e.g. #10757 (turns out it was a move, not an addition)."
This is a backport from Core PR13259: https://github.com/bitcoin/bitcoin/pull/13259