Divided app and business logic