Whatever method you use, make sure to soak them in ATF and then let them drip out for awhile. The ATF is necessary to lubricate and prevent rusting, and the dripping out is because you don't want ATF in your wheel bearing grease.
If you remove the snap ring that holds the small bearing and inner part of the hub in, you can take those parts out, which makes it much easier to get the grease out. You need a small pair of snap ring pliers. Don't over-spread the snap ring because it will deform.
You can also remove the bearing from the inner part (another snap ring) and avoid soaking it in solvent. It is sealed so it is hard to replace the grease after removing it with solvent.