refactor to use generic ting_agency_view_agency_branch function