Splitting out structures and macros from the generated keymap.

- Preparation to integrating the compiler