Replace add_trait() with add().