[PATCH v3 28/30] scripts: apibuild: factor out comment cleaning