Refactor tuples.