Specify scoping in @AutoFactory

And implement the specification.