Middle pairs can be somewhat tricky... many rooky player just c/f if an overcard comes out or they don't flop a set, and that's kind of a failsafe solution. But often times they're good, and you will loose some value if you just give up on them if the flop doesn't cooperate 100%.
Just play them like second pair with A kicker when an overcard hits, if that makes sense.