Polymorphic extracting