The right way is to remove the flange. Since you say it is glued, I will assume it is either PVC or ABS. In either case, the flange can be cut out with a special tool, but you will still have that 7/8" to make up. My advise is to have a professional do it. He will have the tools, and knowledge to do the job right.