In the original script, Andy stayed with Audra when Gayle threatened them. Jenji Kohan told Justin Kirk to run away as a joke during shooting, which he did a couple of times. When editing, Kohan decided to use the running away take because she thought it was funnier.
Show creator Jenji Kohan revealed on several DVD audio-commentaries that each season finale was influenced by some genre or specific director that she loves and thinks about when writing those episodes. Season 5 was a nod to Pedro Almodóvar - hence the title of the episode.