Factorized approach to radiative corrections for inelastic lepton-hadron collisions