Optimize by removing uses of `firstorder`.

I removed some of the slow `firstorders` and then went crazy and
removed the remaining ones as well.