def facet_by_citation_type(arr)
      arr.map do |hsh|
        year_month_arr =
          hsh.dig("year_month", "buckets").map do |h|
            {