Cleanup KubernetesApiURL factory.