Refactor accept-encoding