Does the contacts app have any shared code? If so, then you could add a generic "extend" or "merge" function that would make this function unnecessary and be quite useful throughout the codebase :)