lsmashsource: Split some codes into files.