This question already has an answer here:
Is there a word to describe the process, or result of the process of, an offended group reclaiming a word for themselves. For example, it is common for gay people to call themselves queers, or sexually liberated women to call themselves sluts, or black people to refer to themselves by various offensive terms.
I seem to remember there is a term for this process. Wikipedia suggests "reappropriation" but I seem to remember there is a more specific term.