C++ API call to move user's name in Hierachy and change common name?

I am looking to see if there is a way to combine the two C++ api calls to move a person in hierachy and common name changes. I know that when you move a person to a new certifier, you can also change the common name. Is there a way we can combine these API calls into a single function? Has anyone ever done this or even thought about it?

Thanks.