Removes unnecessary bits of initialization code.