def METHOD_NAME(self, recipe_dict: dict) -> dict:
    """A helper function to reassign attributes by an alias using a list
    of MigrationAlias objects to rewrite the alias attribute found in the recipe_dict
    to a
    Args:
        recipe_dict (dict): [description]
        key_aliases (list[MigrationAlias]): [description]
    Returns:
        dict: [description]
    """
    if not self.key_aliases:
        return recipe_dict
    for alias in self.key_aliases:
        try:
            prop_value = recipe_dict.pop(alias.alias)
        except KeyError:
            continue
        if alias.func:
            prop_value = alias.func(prop_value)
        recipe_dict[alias.key] = prop_value
    return recipe_dict