Removed Enum base class. Moved isValid() to Capability.