My personal standard is thus:
1 - Does the affected class in question use it as an insult? (presumably, girls don’t admonish girls for hitting “like a girl”, whereas guys use the term “dick” as well)
2 - Is there a bigoted connotation to the term (i.e, the recent spook article)?
I’m open to other standards, but those two seem pretty straightforward to me.