DEV: Use isLegacyEmber helper in setup-tests (PR #14458)

We were using multiple methods to check which environment we’re running in. This commit switches us to use the isLegacyEmber helper consistently. This should be a no-op, but makes the code much easier to read

GitHub