Remove @before_entry and @after_entry hooks.