Pass req to factory