Refactored Angularfire module definition