Decomposability and modularity of economic interactions