Move configuration loading to api_service instead of api __init__