Use existing accessor to set the PK
Define PK accessor if it's missing
Keep configuration for both mongoid 2 and 3