Simplify help dialog related code