Shuffled around when things needing repo ID are created.

Originally, it was at wrong place, as no configuration existed yet
for the repo