Remove repetitious code.