Split out adjust_alias method.