Move variables and code to their blocks of use in Reviewer.updateCard()

Straightforward change, intended to limit code to places where it is actually used.