Update logic to get custom role key from settings.