MT#7955 Move declaration of by_alias function.