def METHOD_NAME(client, phase_factory, user):
    phase, module, project, idea = setup_phase(
        phase_factory, None, CollectFeedbackPhase
    )
    assert user not in module.project.participants.all()
    module.project.participants.add(user)
    url = component.get_base_url(project)
    initiator = module.project.organisation.initiators.first()
    client.login(username=initiator.email, password="password")
    user_pk = user.pk
    data = {"submit_action": "remove_user", "user_pk": user_pk}
    response = client.post(url, data)
    assert redirect_target(response) == "dashboard-{}-edit".format(component.identifier)
    assert response.status_code == 302
    assert user not in module.project.participants.all()
    response = client.post(url, data)
    assert redirect_target(response) == "dashboard-{}-edit".format(component.identifier)
    assert response.status_code == 302