move firebase.util to firebase-factory