Break down the detail sequence code into smaller files.