def METHOD_NAME(
    *, storage: Storage, perf: Profiler
) -> Tuple[List[CObj[pd.DataFrame]], List[CObj[DbFDRData]]]:
    logger.info('Generating formulas...')
    db_data_cobjs, formulas_df = get_formulas_df(storage, ds_config, moldbs)
    num_formulas = len(formulas_df)
    perf.record_entry('generated formulas', num_formulas=num_formulas)
    logger.info('Storing formulas...')
    formula_cobjs = store_formula_segments(storage, formulas_df)
    perf.record_entry('stored formulas', num_chunks=len(formula_cobjs))
    return formula_cobjs, db_data_cobjs