def METHOD_NAME(service, profit_center_name):
    if (
        not service.profit_center or
        service.profit_center.name != profit_center_name
    ):
        service.profit_center = ProfitCenter.objects.get_or_create(
            name=profit_center_name
        )[0]