`delegate :register_type, to: :TYPES` will fail if it's outside of the `class << self` block.