Moved an enum to a separate file and removed a duplicate one.