Remove generator module and replace with compiler and runtime modules