You write something like the following:
Horne and Corden are travelling through time, stealing ideas for sitcoms.
Doctor Who is chasing them, trying to stop them destroying the history of comedy.
He stops them by writing an entire series of Terry and June in 1978 which uses all the main elements of Gavin and Stacey, thus foiling their rise to fame in the first place.
I think it’s probably time for bed.