Simplifying the dm expression.