Refactor APP1 size parsing method