This can be extracted too, replace with this:

    raise Foreman::Exception.new(N_("parsing settings type '%s' from string is not defined"), settings_type)