api: Fix too much copy-paste.