Adds the remove-repositories functionality