Currently, the entire Attribution business logic lives within AttributionRestHandler. This was really good approach for MVP, now once we decided to follow this approach, we should refactorthe Handler and extract business logic to a separate class with proper unit test coverage.
Acceptance Criteria
- Refactor business logic out of the Handler and into a dedicated class (no need to make it a just service yet)
- Add PHP Unit tests to that class
Open Questions
Should the REST Handler be the one defining the response structure?