Remove unnecessary repeated use of 'var'