Refactoring.
Refactoring for `helm-mode'.