Not keen on the way this code is copy and paste from below.  I think it results in a bug because the copy and paste omitted initialisation of `repos` as a `Mash`.  A refactoring into a separate method would avoid this.