Very minor code refactoring in hash command