[api] code cleanup