I changed it so that the VoltSQL object is fully formed either for @AdHoc or any other proc call. So the conditional is no longer needed.