Prevented duplicate repos being added, remove repos when they are no longer needed