def shorten_task_names(configs, common_task_prefix):
    """
    Shorten the task names of the configs by remove the common task prefix.
    """
    new_configs = []
    for config in configs:
        config.task_name = config.task_name.replace(common_task_prefix, "")
        new_configs += [config]
    return new_configs