AID-36 Helper method for finding a publications top domain given a domain/hostname from a URL, with or without environment parts from test environments.