trigger: remove the legacy trigger API implementation