Remove dead code from utils.dart and utils_observe.dart