Enables defining of scope for factory() helper