[FEATURE] Create api service and refactor functions into it.