In the last season of the original Star Trek you could tell they were writing scripts just to use the existing costumes and sets at Desilu Studios. Nazi planet, Roman planet, OK Corral planet...
They also reused the original pilot episode by splicing and overlaying to make a totally new show.
Surprisingly, it was pretty good.