The enum is not necessary here, just copy the existing implementation from PreBuildCleanupContext.