Managing secondary treatment systems