[U-Boot] [RFC PATCH 11/15] Refactor the bootm command to reduce code duplication