Templatize the integrator and use typed quantities in computations everywhere.