I can't take credit. As I wrote in the commit: `This is copied from imminence (and many of our other Rails apps), originally copied from Whitehall.`