Add a specification to @AutoFactory for how visibility is handled and implement it.