The outgoing SEC director first joined the agency in 2017.