Separate out code to change between IOB variants
Change to use separated out IOB recoding code.