Remove duplicate code passages from LAB conversion