To avoid making this specific to edx.org, can you change this test to `if domain and domain.startswith("edge."):`?