Split api feature to API class
Refactor API class