So we are dealing with a single engine go-around, as oppose to a loss of power etc on take-off where the emergency turn procedure is used
Mr Boeing says retract the flap normally 1000ft above airfield elevation for a B.737
Additional information : FCOM PD 32.6 for % climb gradient SE