Moved the realms to the rest client.