Remove obsolete APIs and APIs that are actually implemented only as macros.