Moved kingdom prefix setting to the correct location