Extract document metadata into separate behavior.
Re-add previously removed FileOrPaperValidator.