Revert AI target filtering

This is the cause of the recent behavior regressions. #3763 will need to be reopened, but that is a lower priority bug.