Restructured library into hierarchical module namespace.