Hide static service stubs behind a friend function