Remove shared pointer from Names.