Remove DebugMode, remove deprecated class