Great answer by Mark. He explained about the pit vent. ( Yes it MUST be dedicated.) However the fixture vent's another story. This vent can.
1, Be run out the roof,
2. Revent back into a existing attic vent **OR**
3. Revent back into another fixtures dry vent providing it connects at least 6" over that fixtures flood rim. Good luck Tom.