bugpattern for classes with more than one injectable constructor.
refactored to use new error-prone API