“We decided to take from our own lives,” executive producer Andrew Kreisberg says of the inspiration for Monday’s episode.