Removing unnecessary repositories