Use rpsec 'let' to remove duplication