well, if I write it, I will create new private method `encoded_partitions` like this:
```
def encoded_partitions(target_map)
  partitions = targetMap.values.map {|e| e.fetch("partitions", []) }
  partitions.flatten!
  partitions.select { |p| p["enc_type"] != :none }
end

#and in method
enc_partitions = encoded_partitions(target_map)
need_cryptoloop = enc_partitions.any? { |p| p["noauto"] == true &&  p["enc_type"] == :twofish }
need_cryptoloop = enc_partitions.any? { |p| p["noauto"] == true &&  (p["enc_type"] == :twofish_old || p["enc_type"] == :twofish_256_old)  }
```

it is less cryptic and of course it can be much improved by more splitting and mabe in result if target map is object that contain another objects, then it can be simple method, that delegate it to other parts