A network device (220-1,..., 220-N), comprising: one or more memories; and one or more processors configured to: process forwarding data, associated with a multi-level hybrid hierarchy forwarding information base of the network device, to generate transformed group next hop entries and a first set of transformed forwarding next hop entries; process, based on default forwarding classes, the transformed group next hop entries and the first set of transformed forwarding next hop entries, associated with the default forwarding classes, to generate a second set of transformed forwarding next hop entries; process the transformed group next hop entries and the first set of transformed forwarding next hop entries, associated with all classes of traffic, to generate a third set of transformed forwarding next hop entries; group the first set of transformed forwarding next hop entries, the second set of transformed forwarding next hop entries, and the third set of transformed forwarding next hop entries, based on the transformed group next hop entries, to generate a final set of transformed forwarding next hop entries; and transform the final set of transformed forwarding next hop entries into a particular format. one or more memories; and one or more processors configured to: process forwarding data, associated with a multi-level hybrid hierarchy forwarding information base of the network device, to generate transformed group next hop entries and a first set of transformed forwarding next hop entries; process, based on default forwarding classes, the transformed group next hop entries and the first set of transformed forwarding next hop entries, associated with the default forwarding classes, to generate a second set of transformed forwarding next hop entries; process the transformed group next hop entries and the first set of transformed forwarding next hop entries, associated with all classes of traffic, to generate a third set of transformed forwarding next hop entries; group the first set of transformed forwarding next hop entries, the second set of transformed forwarding next hop entries, and the third set of transformed forwarding next hop entries, based on the transformed group next hop entries, to generate a final set of transformed forwarding next hop entries; and transform the final set of transformed forwarding next hop entries into a particular format. process forwarding data, associated with a multi-level hybrid hierarchy forwarding information base of the network device, to generate transformed group next hop entries and a first set of transformed forwarding next hop entries; process, based on default forwarding classes, the transformed group next hop entries and the first set of transformed forwarding next hop entries, associated with the default forwarding classes, to generate a second set of transformed forwarding next hop entries; process the transformed group next hop entries and the first set of transformed forwarding next hop entries, associated with all classes of traffic, to generate a third set of transformed forwarding next hop entries; group the first set of transformed forwarding next hop entries, the second set of transformed forwarding next hop entries, and the third set of transformed forwarding next hop entries, based on the transformed group next hop entries, to generate a final set of transformed forwarding next hop entries; and transform the final set of transformed forwarding next hop entries into a particular format.