Removed hooks from flag.api.php that were replaced by plugins and events.