Refactored out enums to a separate file.