Rebuild repo structure