Simplify code in helpinfo