Extract proper fields from doc