wandi: Reorganize the source code.