[TASK] Avoid usage of "global" keyword in ApiService

Change-Id: I94926fe0b24e043d2e8a5c8d4b1183d4b55a59ae