Separate source files into directories.