Refactor for better legibility.