Generate the model spec and factory for group and audience