Replace util.extend with object-assign
Remove extend function from util module