Factor tie updating out into its own function.