Move patterns episode module to transformer