From the beginning of season seventeen's production cycle, South Park co-creators Trey Parker and Matt Stone wanted to ensure that there was a two- or three-part storyline somewhere in this season because they have always enjoyed doing them as they allow for a different style of writing.
Before the Game of Thrones and Black Friday elements became part of the episode, the original premise of the storyline was focused on the large amount of cut content from South Park: The Stick of Truth, a video game which Parker and Stone were heavily involved in the development of.