Refactor vertex buffer.