[bootimg-parser]: refactor code only.