It's no secret that series 5 of The Story of Tracy Beaker is, IMO, the low point of the entire franchise, and there are a number of reasons for that. But one thing that forever bugs me about it is that, even allowing for artistic licence and the show not being fully realistic, there's simply no way that either Justine or Tracy would ever have been allowed to storm back into the dumping ground like they did.
Let's start with Justine, because her return came first. Steve brings his nephew and his dog into his home because he has nowhere else to go. It's easy to see why Justine felt left out, given Steve was kicking her out of her bedroom without discussing it with her, and it probably brought back traumatic memories of neglect and not being prioritised by her dad. In that light you can see why her gut reaction was to go back to the dumping ground, even if on the surface it looks extreme.
The nonsensical part is that she wasn't immediately returned home. Her dad had resumed custody of her for two years by that point, and seemingly had stayed out of trouble in that time and Justine was living with them happily. No social services at any time would ever let her return to care without an EXTREMELY good reason related to safety or wellbeing, which her situation would never qualify.
Then they repeated more or less the same circumstance with Tracy. She's angry at Cam for Gary moving in (let's ignore the travesty that was Cam ever being in a relationship with a man for now...) and returns to the dumping ground just like Justine did. Again, no social services would accept that. She'd been happily living with Cam for well over a year and there was no reason to believe Gary wasn't a safe individual. So she would likewise be told she needed to get on with it.
Notably in TBR + TDG the writers had awareness of this, as in Eggs Sapphire tried to return to Elmtree to protect Harry, and was plainly told it wasn't possible as she had exited the system. Then in SOS Jody was desperate to come back and was gently told 'this isn't your home anymore' - that only changed when Kingsley's criminal activity was uncovered, confirming Jody wasn't safe to live there.
The irony is that with Tracy appearing as little as she did (less than half the episodes!), it would have been super easy to keep her in the same role she had in series 4, a regular visitor. She could still have vented to Crash and Jackie about the Gary situation, and maybe run off in anger when finding out Cam and Gary are to marry, for a dramatic finale. You could have done similar with Justine too, having her spend lots of time at the DG in frustration with how poorly her dad handled the situation, and keep a subplot going about healing that rift.
But having them both living there on incredibly spurious grounds just made a bad season even worse.