[PATCH 51/71] bootstd: Move label parsing into its own function