Firebase factory