Refactored IntegratorInternal::getDerivative #794