Split out function generate_directly_covered_intervals from generate_covered_intervals.