Very common to find these brakes on peoples bikes in this state. The majority of owners haven’t flushed them in 3-4 years and this is usually what you find. Brake pad change is impossible without resetting pistons which means a heap more work than the likes of a shimano brake where you can reset the pistons into the bores without the possibility of bursting a seal at the lever.
Remove the pads,clean the edges of the pistons and lube them with hunters silicone lube (not brake fluid). Gently work them in and out, one at a time then back off a bleed screw before finally resetting both pistons flush in the caliper. At this point you can now start flushing the system a number of times as they tend to get fairly contaminated. Some brakes have fairly filthy fluid lurking at the caliper end (funnily enough) so if it’s possible, flush it out from the lever to the caliper to begin with to prevent dragging more crap through the entire system.
Do everything slow and gently. Don’t force syringes if you feel pressure building up in these brakes as you could damage seals. Take it easy and you’ll eventually get the fluid flowing easily with a bit of patience (if they’re in a bad state)
If you spend the time doing this, you’ll have a fully bled system that’s not over filled and you’ll be awarded with pads that clear the discs as well as they can, giving you a brake that won’t eat through pads as easily as there’s more clearance.