This is what both Gaster and Alphys both failed to achieve. To extract the “soul” and perfect its purpose. They failed because they didn’t understand the philosophical concept and human nature, in a manner of speaking, of “Determination”. It was just a matter beyond science. And both sides suffered nonetheless in the beginning.