1. refactor the directory structure.

Remove the legacy files and structure.