Syndicated cartoons in the '80s and '90s often relied on repeating plot structures to sustain long seasons, especially when producing 65+ episodes per year for weekday syndication.
David Wise wrote two episodes I remember well that seemed pretty... familiar? This had been brought up in Transformers and Turtles fandom, but at least one stock aspect was also used in G.I. Joe.