Switch from using `this` to closure variables in specs.