At this point `nrepl-client` is already required, so this is not needed. I do, however, think that `cider-client.el` is a better place for this code.