Cleans repository structure.