Remove duplicate code for `button_to`