Declare blocks as local variables instead of arguments to method call