Automate splitting up projects into submodules