Extract code into separate files.