util: put vertices_per_primitive function in its proper location