Split the main entry points into different files.