def remove_spawning_profile(intersection, spawning_profile):
    """
    Removes a spawning profile to an intersection
    :param intersection: intersection
    :param spawning_profile: spawning profile to be removed from intersection
    :type intersection: Intersection
    :type spawning_profile: SpawningProfile
    :return: Intersection with spawning profile removed from spawning profile list
    """
    return intersection.remove_spawning_profile(spawning_profile)