clean up the repositories structure