Manually.
Use your own math to split the 1099-Q into two separate 1099-Qs and enter the separately into TurboTax