To dehumanize is to strip away human qualities or characteristics, reducing someone or something to a mechanical or routine state.
To dehumanize is to strip someone or something of their human qualities, reducing them to a level that is less than human.