I find if the course is too flat, I get into a groove that almost imperceptively slows. Hills hit different parts of the leg and generally, so long as the hills are not ridiculously steep, you can gain going downhill what bit you lost going up, particularly on circular race routes. I also get annoyed when people breeze past me uphill and that in itself is a spur to kick on a little.