Use `entry` instead of deprecated `find_or_insert_with`.