Cleanup of AST enums into seperate types file