Refactor compression support, now at message level.