from a future maintenance perspective it seems a little odd to only call this function when you have a `case_id`. I would think this could be improved either by having `generate_additional_columns` take in the entire column list and do the check itself, or just rename it to `add_custom_case_columns`