Move ews types to separate library