Move submodules to `lib` directory