quality-19 Refactor Element equals and hashCode
https://github.com/regidev/mte/issues/issue/19