Normalise :repositories to be a map