The GenericMonitoringTool requires flags. Pass them down where needed even if some (all?) of this code is only used in the legacy configuration.
GenericMonitoringTool