Remove serialization based on InputStream.