I would tag into the existing if statement:
`
if self.environment.organization.being_deleted?
  return true
elsif self.custom? && self.deletable?
`

since there 3 different conditions here