Right now the code of _ShockFactory may be smart but it's full of black magic. Very difficult to follow, would be better if more explicit.