Share list initialization code.