Add a specification to @AutoFactory for how visibility is handled and implement it.
Merge pull request #11 from gk5885/scope

Specify visibility in @AutoFactory