Optimization of Thompson Construction of an NFA
In general these reductions are OK when there are no other edges incident to the edges you are contracting. Whenever there are other edges there can be unexpected paths. 

I do not know of a good characterization when they can be used. If such an improvement would have been obvious, I think Thompson would have included it.