Observer replacement for better import warning handling