Avoiding identity mutability