Sublimation
In psychology, sublimation is a mature type of defense mechanism where socially unacceptable impulses or idealizations are unconsciously transformed into socially acceptable actions or behavior, possibly resulting in a long-term conversion of the initial impulse.