Remove unnecessary slice copy.