Well, I for one take a very dim view of people(males) who enter my home wearing headwear and I make a point of asking, politely, for the offending attire to be removed from the head. Thankfully a rare event, but no one has yet refused.

On the subject of removing one's(male) headwear and I don't know if it is common place, but removing one's headwear whilst in a graveyard is very much a custom here.