Refactored the handling of alias/alias_method.