r/harness: Reduce scope a variable and remove another one

Signed-off-by: Niels Thykier <niels@thykier.net>