BOSTON — Federal prosecutors have agreed to remove some allegations from a political corruption indictment against former Massachusetts House Speaker Salvatore DiMasi and three associates.

The allegations posit that DiMasi had a “hidden future interest” in a property management company formed by one of the co-defendants, the U.S. Attorney’s Office said in a filing.

U.S. District Court Judge Mark Wolf warned last month that the allegations involving Genesis Management Group LLC could be “unfairly prejudicial” and even lead to a potential mistrial. Defense attorneys argued that the material should be stricken because it did not relate closely enough to the principal charges, which alleged bid-rigging state software contracts.

Wolf had given prosecutors a Friday deadline to decide whether to remove the material from a superseding indictment filed last fall.

In response, the U.S. Attorney’s Office said in the filing Thursday that it would “redact the allegations,” removing references to Genesis, but would still seek to have details about Genesis admitted at trial as “relevant and intrinsic” evidence to the case against the four defendants.

Prosecutors had detailed an alleged scheme to use DiMasi’s clout to help win public building management contracts for Genesis, which the government said was formed by co-defendant Richard Vitale – a close friend of the former speaker’s – and two unnamed individuals.

DiMasi’s attorney, Thomas Kiley, said Friday he was pleased by the government’s decision to amend the indictment. He added that lawyers would strongly oppose any attempt to admit the allegations as evidence at trial.

The removal of the allegations from the indictment does not alter the charges lodged against DiMasi, Vitale, Joseph Lally and Richard McDonough, which include conspiracy and mail fraud.