Move the numeric results processing into its own module so that we can more easily use it from other places.