The solution, as you say, is probably to break it down into isolated sub-components that are only aware of each other's APIs and nothing more.
The solution, as you say, is probably to break it down into isolated sub-components that are only aware of each other's APIs and nothing more.