Move variable into initialization. Remove unused variable.