Fix compiler error due to refactoring of AliasRegistry.