Those pieces are not held in by bolts. You took your axles out to pull your trans... so you should follow the same method to get those out of ...
Wait..that trans is the one you just took out? ugh.. you took the axles apart versus taking them out of the transmission. Those are the inner cups of the CV shafts. The brown sludge is your axle grease.