Use ActiveSupport Array#uniq_by