refactor initialization of InstructionInfo to be sharable between