def compress_switch_to_file_type(gz=False, bz2=False, xz=False):
    """Return compressed target file_type based on supplied switches.
    """
    return (gz and 'gzip') or (bz2 and 'bzip2') or (xz and 'xz') or 'text'