Move class definitions out of assemble_ui now that we can.