Use unique_ptr and shared_ptr in BnxDriver.