refactor mode_b lowerer to have a create_set callback