Split core into separate files.