Refactor and build the framework for displaying help info.