[ELF] Simplify Symbol::extract. NFC

GitOrigin-RevId: f1ba48d50800e3d39027af9e5dff56f35ac21ce4
diff --git a/ELF/Symbols.cpp b/ELF/Symbols.cpp
index da3ade1..8c410b4 100644
--- a/ELF/Symbols.cpp
+++ b/ELF/Symbols.cpp
@@ -257,17 +257,10 @@
 }
 
 void Symbol::extract() const {
-  if (auto *sym = dyn_cast<LazyArchive>(this)) {
+  if (auto *sym = dyn_cast<LazyArchive>(this))
     cast<ArchiveFile>(sym->file)->extract(sym->sym);
-    return;
-  }
-
-  if (auto *sym = dyn_cast<LazyObject>(this)) {
-    dyn_cast<LazyObjFile>(sym->file)->extract();
-    return;
-  }
-
-  llvm_unreachable("Symbol::extract() is called on a non-lazy symbol");
+  else
+    cast<LazyObjFile>(this->file)->extract();
 }
 
 MemoryBufferRef LazyArchive::getMemberBuffer() {