A top U.S. military official in consideration to be Donald Trump’s director of national intelligence has been recommended to be removed from his command in the Obama administration.

The recommendation to relieve Adm. Michael S. Rogers from his post as head of the National Security Agency was made to the White House last month by Defense Secretary Ashton Carter and Director of National Intelligence James Clapper, according to U.S. officials, who were not authorized to speak publicly on the matter.

Carter and Clapper have been critical of Rogers’ performance at the NSA, particularly after the agency came under fire in October when a contractor was found with a trove of sensitive digital files related to its surveillance programs. The incident took place only three years after Edward Snowden distributed more than 1 million classified documents about the agency’s secret surveillance programs.

Carter has also been privately critical of Rogers, who is also in charge of the U.S. military’s Cyber Command, for not responding faster to the technology-savvy Islamic State and its sprawling propaganda operation, officials said.