Change (hopefully) all the hard-coded motion mode values into constants.