Move the addition of bucket type hash to apply_updates function