Use closure variables to simplify specs.