turn enum DecoratorType into enum class Decorator::Type