Refactor help files code.