[PATCH v2 30/34] scripts: apibuild: factor out comment cleaning