Switch to a multimap for the hash->function map.