Refactor app.Firebase.