Refactor Variable#format using utils.format