Bernard snatched up Dolores’ brain pearl, crafted a fully functional replica of Charlotte Hale, and gave it Dolores’ consciousness.
It turns out Bernard really is/was responsible for bringing Dolores and Ford’s wishes to fruition.
And all while being guided by a fully imagined Ford, because why not?
Obviously, the naked Hale host had to be the one to kill the human counterpart, who had previously murdered Elsie and thus didn’t deserve salvation in Bernard’s eyes.