Refactor for clarity.