Pass the attained_level to the certificate here, rather than recalculating it in a filter in the Certificate:
  `self.create_certificate(attained_level: attained_level)`