Race. I've found there is no better motivation for both the training and the eating. If you are eating to fuel your training and your racing, it will clean up a lot of bad eating habits. Nobody wants to get dropped at the first sign of a hill, and there is no better way to avoid that than keeping the weight off - plus, it's impossible to perform well when eating junk.