[Tweaks #50370923] Adds statement to remove orphaned authorizations from authorized apps scope