[MAT-441] remove redundant unique_ptr usage.

There is no benefit to the use of unique_ptr in this case so it
is removed.