Create the folder structure and move the logic to different files.