Flatten module structure by combining individual files in submodules into single files in the main module