Transition to new document schema.