def GetCaId(settings):
  """Get ca_id to be used with GetCaParameters().

  Args:
    settings: object with attribute level access to settings parameters.
  Returns:
    str like "FOO" or None (use primary parameters)
  """
  return getattr(settings, 'CA_ID', None)