restructure: move get_isoch_params to its own function