Dvogonen/making settings type safe