Convert writer outputs to unique_ptr