HAT trie converted to generic mm context.

Change-Id: I2a5ed6c68aeee99f13c7e023e148e92e4965b838