Refactor Maven build process into several submodules