Refactor data exchange business logic