Split the app into functional modules.