If I recall working on the 310D, the filter is underneath the machine, under the floor plate, big spin on filter. Loosen the cap on hyd tank first to vent pressure in tank, then put cap back in place. When you take the filter loose, it will dump oil that's in the lines, and it's a good bit of oil, easy to make a mess with it.
I would slightly loosen the filter, enough so I could turn it by hand, take a center punch and punch a hole in the center of filter bottom, then open the hole up with a big tapered drift pin, let oil drain from hole into large drain pan under filter. Spin filter off while it's draining from hole, drop filter in pan, and quickly pop a new filter in place.