Clean up unnecessary logic.