The correct answer is compartmentalization.
The behavior that is part of an effort to separate one's feelings from one's acts is called compartmentalization.
This behavior is a subconscious psychological defense mechanism used to allow conflicting ideas to co-exist, to separate thoughts that can produce conflict with one another. Also, it happens when a person has conflicting emotions, beliefs, and values within themselves.
For example, the executioner has to kill someone when he works. So, he covers his face to separate his job from his real-life persona, who doesn't kill people as a citizen.