What about using an `around` hook here? That'd stop you having to have the local variable outside the block scope.