Remove unneccesary assignments.