Don't use window.competitionId.
Continued implementation for #18, patrols.