Extract ExitPolicy-and-IPv6Exit check into a new function