Remove code_base and data_base from tgen