I have the following function in my service file. It returns a FormGroup that we need to dynamically return in multiple places, so it is put in a service.