Use hooks for plan/apply policy results (#38808)