Correctly raise deprecation warnings when no `fields` are specified.