[new parser integration] simplify code for 'define'