refactor BSPAT project structure.