[PATCH 10/25] binman: Move section-building code into a function