Please refactor these into classes so custom packers can more easily be injected:

```python
class PicklePacker(object):
     protocol = 2
    def pack(self, data):
        return pickle.dumps(data, self.protocol)

    def unpack(self, bytes):
        return pickle.loads(bytes)
```