Before revision: Color coded hats are used the throughout psychology, religions, societies, workplaces, and learning environments, both literally and figuratively.
After revision: A coloured hat or color coded hats are used in psychology, religions, societies, workplaces, and learning environments, both literally and figuratively.