As with [this](https://github.com/mozilla/zamboni/pull/1012/files#r5846760), I think there's some DRY that could be done here.