Move packet extractor to generics