Consolidate how birth related contexts determine prefix #3327

Fixes `birthing_place` in bug 3327 and consolidates prefix determination for related data refs.