You think driving to Balmoral from Aberdeen on the day the Queen died was a public occasion? Because if not then surely it has nothing to do with any intentional process that he should be rehabilitated.
Lots of planning had been done (I was peripherally involved and had been to a few meetings myself) but there is always stuff to work out at the time. So where everyone was, who would travel to Scotland and how they would get there with the weather / helicopter issue. I’m sure nobody anticipated Harry would be quite such an arsehole. Slightly complicated by her being at Balmoral and many of the family not, although that was planned for but not as forensically as the plans for Windsor.
All the releases needed checking for the circumstances, updating and signing off, and although there was a plan for who had to be informed when, including family, heads of state in the commonwealth and elsewhere in the right order, domestic politicians in Westminster and the nations, the broadcasters and the press to figure out exactly when the announcement would be made, not to mention getting the hours running up to her death right, how much should they say to prepare people without jumping the gun - even though a lot of that was planned, people had to do it all, make those calls and issue those releases and sign off the scripts. All in the space of a few hours while dealing with a new monarch, a grieving family and then Harry. It was a well-designed and well-prepared machine but still one that had never actually been used before. So imagining there was a plan that was “just put in place” and it all magically happened while the comms team had a cup of tea and thought about how this could be used to make Andrew look good is extremely naive.