Refactor grid mixins.
Clarify baseline source code.