[PATCH 05/13] x86: zboot: Create separate functions for the logic