Refactor pack-sprite-vertices.