Use separate methods to deactivate and uninstall repositories.