; and (B) no alien may be removed, determined to be inadmissible, or lose any immigration benefit because of such conviction, arrest, or institution of criminal proceedings. (d) Expungement of arrests (1) In general If the court grants a motion to expunge an arrest under subsection (b), the court shall immediately enter an expungement order that directs that there be expunged from all official records all references to— (A) the arrest of the person for the covered offense; (B) the institution of any criminal proceedings against the person relating to the covered offense; and (C) the results of the proceedings, if any. (2) Effect If an arrest is expunged under an order entered under paragraph (1)— (A) the arrest shall not be regarded as an arrest under Federal law and the person for whom the arrest is expunged shall be considered to have the status occupied by the person before the arrest or the institution of the criminal proceedings related to such arrest, if any; and (B) no alien may be removed, determined to be inadmissible, or lose any immigration benefit because of arrest or institution of criminal proceedings, if any. (e) Mitigating factors (1) In general The court which imposed sentence for a noncovered offense upon a covered prisoner may reduce the term of imprisonment for the noncovered offense— (A) upon motion by a covered prisoner, the Director of the Bureau of Prisons, or the court's own motion; (B) after notice to the Government; (C) after considering— (i) the factors set forth in section 3553(a); (ii) the nature and seriousness of the danger to any person; and (iii) the community, or any crime victims