Move the task exclusion check away from common.sh