I'm building a service layer that going to keep a business application. There'are too difficult to avoid circular dependency. In my application, I have two modules which include A and B.
In module A, I have a function called "formatDataModuleA". In module B, I have a function called "formatDataModuleB".
The problem is I wanna use the function "formatDataModuleB" in A and otherwise with module B. So, it will cause a circular dependency problem. I can not use a sharing or common module to contain these functions. So, there'are any light-weight for reusing the business logic with service layer pattern and avoid circular dependency?