[Refactoring] The App function was extracted from the main module.