Revert "Add another shared object factory method flavor."

This reverts commit 6c842b4fdbd185643280a936b31a950c3032b6ed.