Restructure source code tree to group extension main source code together.