Remove superfluous anonymous function in add-unique-name