Prefer singleton_class over `class << self` idiom