[Concept] [PATCH v2 11/18] boot: Move obtaining data from a FIT image into a function