Refactor help generation.