The rear hubs are actually not a sealed unit, they are separate. The fronts however are sealed.
The rears come as 3 pieces, the hub, the bearing and a snap ring. The bearing has to be pressed into the new hub by a machine press, and the snap ring placed on top of that, then installed.
You can purchase the rear wheel bearing by itself and have the old bearing pressed out of the old hub, and the new bearing pressed into it. However, this is where it becomes cautionary because depending on the condition of your old hub assembly, putting a new bearing with a trued mating surface into an old hub with a warped mating surface, can quickly lead to failure. It all depends on the condition of your existing hub(s). Also, the old hubs can be damaged when the old bearing is pressed out of it, as sometimes they can become seized in there....unless you have a micrometer or vernier caliper and want to get into microns of measurements throughout the surfaces to validate if your old hub is true while sitting at a machine shop, then I just suggest replacing the entire unit.
Call me eccentric, or call me smart (and experienced in this subject), but just do the whole thing....so you don't have to approach it again (for at least another 60-100k miles....)