Remove unused logic.