An employee or agent engaged in the performance of investigative or prosecuting functions for an agency in a case may not, in that or a factually related case, participate or advise in the decision, recommended decision, or agency review pursuant to section
557 of this title, except as witness or counsel in public proceedings. This subsection does not apply—