move calculate_stealth_bitfield() into public API.