[PATCH 11/13] x86: zboot: Separate logic functions from commands