Clean redundant assignment statement