Remove unnecessary logic.