Using factories instead of going back into the scope