The potential endorsement of Cynthia Nixon in the race for governor by the Working Families Party is leading some labor leaders to consider forming their own ballot line this fall, sources with direct knowledge of the talks on Thursday said.

The ballot line would be composed of the labor unions that have in the past largely funded the Working Families Party and a network of affiliated organizations who have been critical of Gov. Andrew Cuomo, including Citizen Action, New York Communities For Change and Make The Road New York.

As a result, the unions would end their funding of not just the WFP but those groups as well, a source said. Unions involved in the new ballot line would include the United Federation of Teachers, 32BJ and RWDSU, among others, the source said. A spokesman for 32BJ on Thursday evening insisted the union was not involved the ballot line discussions, however.

Some of the major labor unions in recent years have already departed the WFP, disagreeing over goals and strategy. The WFP in 2016 had endorsed Vermont Sen. Bernie Sanders in the presidential election, over the objections of the teachers union.

In an interview, UFT President Michael Mulgrew said the Working Families Party had strayed from its original mission.

“The UFT itself has not been part of the WFP for a couple of years,” Mulgrew said. “Our frustration — it’s not about Cynthia Nixon, let’s just take her out of the equation — originally the WFP was formed by labor and working with advocacy groups to actually get a progressive piece of legislation passed that affects everybody. For me, I made the decision a couple of years ago that that was not what they are interested in.”

The WFP has scored some successes both nationally and in New York in recent years. The party celebrated the announced retirement of House Speaker Paul Ryan, whose Democratic opponent and WFP recruit Randy Bryce took credit for chasing the speaker from the race.

At home, the WFP has claimed credit for paid family leave legislation and a $15 minimum wage when Cuomo initially expressed skepticism either could pass in the Republican-led Senate, suggesting there was no “appetite” for the leave bill and the $15 wage was a moon shot.

“The WFP is laser focused on standing up to Wall Street, real estate and hedge funders on behalf of all working families, both those in unions and those who are unorganized,” WFP State Director Bill Lipton said in an interview.

Nixon, an actress and education advocate who has worked with the Alliance for Quality Education, could receive the backing of the WFP as early as this weekend in Albany, The New York Times reported this afternoon.

Still, a Nixon endorsement would not necessarily make her the WFP candidate in the November general election. A variety of ways can remove Nixon as the WFP’s nominee, including a nomination for a judgeship, moving out of the state or, in a more complicated way, a double-switch with another candidate for office.

But labor leaders have advised Cuomo to not take the WFP’s ballot line in September anyway after the Sept. 13 party primary — a move that could hamper the WFP’s ability to garner votes in the general election and maintain its ballot status.

Cuomo in recent weeks has sought to bolster his support on the left, including an agreement with the eight-member Independent Democratic Conference in the state Senate to dissolve and return to the mainline conference fold.

Control of the Senate by Republicans has been a key issue for liberals, a point of contention for Cuomo and activist organizations.

In a statement that was also provided to the Times, a Cuomo campaign advisor indicated the governor would side with labor groups.

“After years of discord the New York State Democratic party is completely unified, and with Donald Trump in the White House, the stakes have never been higher,” said the advisor, Sarah Paden.

“The Governor is 100% focused on maintaining that unity and taking back the House and the state Senate this year. The WFP situation could now replicate a new ‘IDC’ dynamic, dividing Democrats to the benefit of Republicans. A fight between labor unions representing the interests of working people and a third party ballot line is not something we are interested in engaging. In that division, we will prioritize democratic unity and will stand with our brothers and sisters in labor and their progressive unions.”

Cuomo nearly lost the WFP’s endorsement in 2014 as he sought a second term, but the party ultimately backed him over his eventual Democratic primary rival, Zephyr Teachout. At the time, Cuomo was vouched for with WFP leaers in part by New York City Mayor Bill de Blasio.

But Cuomo and de Blasio have been locked in an entrenched feud over the last several years, making such an intervention this time unlikely.

In 2014, Cuomo ran on a newly formed ballot line called the Women’s Equality Party, which was meant to highlight his support for package of measures meant to benefit women in the workplace and housing as well as a bolstering of abortion rights. Cuomo and his running mate, Lt. Gov. Kathy Hochul, received 53,802 votes on the ballot line that year.