Remove dead code about native serializer