[PATCH v2 12/60] buildman: Move Boards-object code into a function