Apparently, "like a fart in ..." is a common thing. There's this website that shows movie scenes with certain phrases: Playphrase.
Have a look at yourself: https://www.playphrase.me/#%2Fsearch%3Fq=like+a+fart+in&pos=0&language=en
I've come across two "like a fart in the church" one, which I did not really understand. I think it is used for unpleasant situations.

I see what you did there.