I just set up racks for instrument types with rack states for the patches, with a state dependent On Rack Load bind that sends the appropriate Banked Patch Change message. Load the rack, set the MIDI Out to the Motif on the channel you want, and select a rack state.