consolidate parsing of compression level flag