Unnest and translate enums. Remove unneccesary files and whitespaces.