remove complexity in mapping episode class