Use sections to keep all the code for a specific mode together, rather than keeping the attribute duplication separate.