Minor refactoring in Midi to Control path