Categories, utilities, and a little magic.