This is done in:
https://github.com/discourse/discourse/commit/c9923a3e3e9abd318140f77f06d6472ef28b262b