Instead make a separate header with the template implementation of `BaseSetting<T>::toJSONObj` that can be included where needed