Make the annotation dependencies optional in the bean definitions.