Utilize getContainingFunction in services.