Simplify hash table with get_bucket() and init_buckets() helpers.