Split CUI rendering code from field_realtime.cc
Add CUI rendering code