Removed duplicated code for nrepl hooks.