Add bean created via a factory method instead of a constructor call