Remove usage of itervalues.