move weight sharing Init logic into new helper AppendParam