Add concept of DocumentMigration that allows changing documents retrieved from the database.