Moved firebase article stuff out into its own file and factory