pan/bi: Add instruction emit/remove helpers