Extract some namespace related functions from nrepl-client