extended object factory
made object factory available through dependencies