Simplify ode_system code, switching duplication for templating
Simplifying the ode_system_class