Factoring out creating an immediate Syntax struct.