Eliminate core and common submodules and make paths configurable.