Leavitt will act as a contributor, a few months after she left the White House.