Split API class into function-wise collection of classes