Reduce duplication of similar foo_by_slug methods
Reduce duplication of similar foo_by_slug methods

All of these`foo_by_slug` methods are doing very similar
operations. Simplify them into a single method so that we can understand
where we're doing similar operations on data structures.

alphagov/rummager,theodi/rummager,alphagov/rummager,theodi/rummager