Simple refactor using let()