Or a fifty year old remix of a 150 year old song.I have to say, I agree with the OP. That line was vulgar and embarressing, and just didn't belong in a Trek film IMHO. In fact I'm not really all that fond of that entire bar sequence; even the loud rock music in the background seemed tacked on.
Loud rock music... would you expect them to be playing in a bar in Iowa? Mozart's 5th Symphony?
Well, considering the people in that bar would've been listening to 300 year old music...
The thing about scifi is, it's easy to imagine what culture might look like, but it's expensive and complicated to represent what culture sounds like. Accents, music styles, jokes, lyrics, insults, etymology, especially slang and vernacular; you can explore these in detail if you have enough time, but it's hard to do, it takes alot of work, sometimes you have to actually write music and lyrics and get someone to sing it for you, you have to make up entire languages and then explain what those languages are or where they come from.
Even the fact that 23rd century characters talk the way they do is just artistic license; you're supposed to ignore the fact that 200 years of language development, popular culture and shifting word use would produce a new class of idioms, vernacular and figures of speech such that even if you were talking to a 23rd century English speaker you probably wouldn't understand half of what they were saying.