+1, there is likely a shoulder behind each bearing .
so tapping on the end of the axle [brass mallet, to not damage the axle.]
dislodges the bearing from the hubshell ..
you must support the edge of the hubshell to do that.
, perhaps there is a sleeve/shoulder combination
that is threaded on the axle, or it could be machined as part of the axle ..
pressing the bearings in holds the axle in.