When creating apps, it's a good practice to write your business logic and interaction layers into Service Objects or Interactors.…