StatBlock: move variable declaration to a smaller scope