Set the class hierarchy for MaterialSample and specimen types.