refactoring permessage-deflate configuration handling