Add a warning for Class argument passed to Service