Refactor without loop on tuple.