Split files into main and module