Moved cointype into own class