style guide - IIFE on firebaseFactory