This could be written more concisely as `return enabled ? info.Prerequisites : NoPrerequisites`. (style nit: It think it would be better to use Prerequisities consistently here).