I have the following structure of spring context files ( -> stands for \'includes\') :
->
A1.xml -> B.xml & C.xml A2.xml -> B.xml
I quite agree with cleaning up your XML :-)
If you're using annotation based injection, you might try this trick
@Autowired( required=false )
I'm unsure whether this will work in your situation, but it's worth a try.