Clean unused references