Use container for template lookup.

Remove reliance on `_eak_seen`