Extract api package from core