Remove code duplication and add comment
Remove code duplication and add comment

abingham/emacs-ycmd,emacsmirror/ycmd,ptrv/emacs-ycmd,phst/emacs-ycmd,phst/emacs-ycmd,phst/emacs-ycmd,emacsmirror/ycmd,abingham/emacs-ycmd,ptrv/emacs-ycmd,emacsmirror/ycmd,ptrv/emacs-ycmd,emacsmirror/ycmd,abingham/emacs-ycmd,ptrv/emacs-ycmd,phst/emacs-ycmd,abingham/emacs-ycmd,ptrv/emacs-ycmd,emacsmirror/ycmd,ptrv/emacs-ycmd,phst/emacs-ycmd,emacsmirror/ycmd,abingham/emacs-ycmd,phst/emacs-ycmd,abingham/emacs-ycmd