After [#3059], delete the "old" repo data structures from repository.py. Check carefully though, some stuff may still be used. The new models is in repo.py. Also identify the mongo collections that are unused so we can drop them.
scm.new_refresh setting should become irrelevant after this. Everything should be the "new" logic.