[PATCH v2 48/60] buildman: Move reconfigure code into its own function