Split out from https://github.com/NLnetLabs/cascade/issues/190.
Split out from #190.