Remove `undefined` var declarations