Just extract it into a site setting
https://github.com/discourse/discourse/commit/8213da20f205b42ec549e66fb1fc276de893659e