Extract realm name to constant