This is kind of nice. Let's use it elsewhere

Signed-off-by: Michael Donaghy <md401@srcf.ucam.org>