Remove duplicated assignment from API conversion