Use factory_type to generate different views