Extract STM part of EE into separate datatype.