Move env out of library.