Extact Console to its own source file.