module ViewModel::Utils::Collections

def duplicates_by(&by)

def duplicates_by(&by)
  count_by(&by).delete_if { |_, count| count == 1 }
end