Refactoring elisp to extract common hare command code
iftocase elisp in place.