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