Test-only refactor continuing #2523. Centralizes the final repeated fake src.endpoint_resolver cleanup pattern into a focused import-state helper.
Co-authored-by: ghreprimand <203024559+ghreprimand@users.noreply.github.com>