Break out small functions in cmd/kubelet