[REFACTORING] Moved getting the document type into a separate method
[REFACTORING] Moved getting the document type into a separate method

Also: Delete the _type/type properties from Hash in Index#get_type_from_document

brijeshgpt7/retire,fairfaxmedia/tire,mavenlink/retire,alphagov/tire,dbose/retire,HenleyChiu/tire,mikepb/tire,Telmate/tire,elbuo8/retire,fabn/retire,tklee/tire_shiphawk,doximity/tire,ChapterMedia/tire,rubydubee/retire,zaharpecherin/retire,karmi/retire,iamrahulroy/retire,fcheung/tire,1776/tire