hw/display/milkymist-tmu2: Move inlined code from header to source