Refine submodule process.