Slight refactoring to better group together all the handling of special variables.

Issue: GCP-9122
Reviewer: Rebecca (post commit)
Perform variable exclusions - removing certain variables if others are present. It is my opinion this logic should move into the back end, but we don't have time this week.

Issue: GCP-9122
Reviewer: Rebecca (post commit)