def filter_list(services, ignore_list):
    """ Removes items in services that are mentioned to be removed (located in ignore_list)

    Args:
        services: list of running services
        ignore_list: list of services that are supposed to be ignored (mentioned in engine_config.py)

    Returns:
        List of filtered running services (can be micro or macro)
    """
    final_list = []
    for serv in services:
        if not (any(substring in serv for substring in ignore_list)):
            final_list.append(serv)

    # Removing any duplicates
    final_list = sorted(set(final_list))

    return final_list