Clean the library to reduce unnecessary code.