Add a helper function to convert camelCase to under_score.
Implement reloading hierarchy tree.
Refactor hierarchy commands.

Make ShowHierarchyBase common class and other hierarchy commands
inherits it because they share many lines.