Restructure libs.