@staticmethod
def _process_restore_data(data, decompressor, decryptor):
    """Decrypts and decompresses provided data according to args"""
    if decryptor:
        data = decryptor.decrypt(data)
    data = decompressor.decompress(data)
    return data
