Moved defaultEquality to companion object.