moved firebase construction into its own service