Moved substitution variables related to pivoting to a separate section and fully factored pivot