Refactor initWithDomNodeOrPropsT