Remove constraints and identities