Refactor enums used in front end

Remove repeated dtos.