We should make the `check_time_slice_fractions_sum_to_one` function from `time_slice.rs` generic and reuse that.