I totally agree with @Dee’s suggestion.
If you study the laying pattern of a queen bee, you should notice that she prefers to lay worker brood in the center of the middle frames of a brood box. Drone brood tends to be laid in the cooler edge areas. The frames up against the hive wall usually have mostly honey and some pollen - often not much brood. So what Dee is suggesting is that you gradually move the old frame towards the wall, giving the brood in it time to hatch, and allowing the bees to replace with honey if they can. You don’t want to move the frame too fast, depending on your climate, because brood against the wall may not be kept warm enough, or fed properly by the nurse bees. If you move it over 3 or 4 weeks, the brood should do fine.
My hives have a double brood box, and often the queen seems to prefer the lower box for laying. In this case, I can move the frame up one box and put a queen excluder above the lower box. When the brood has hatched, I can remove the frame without killing any larvae.
I would like to re-emphasize what Dee said - do this in summer, when there is a good honey flow. Making new comb costs the bees a lot of food, and moving things around upsets them too. They will recover much more quickly if you are considerate with your timing of rearranging their home.