externalize service dependency